package org.redirect.controller;

import cn.shuibo.annotation.Decrypt;
import org.lucky_common.domain.InviteParam;
import org.redirect.service.IInviteService;
import org.lucky_common.domain.ParseParamObj;
import org.lucky_common.util.AjaxResult;
import org.redirect.service.ILuckyService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController

public class RedirectController {
    @Resource
    private ILuckyService luckyService;

    @Resource
    private IInviteService inviteService;

    //----------------------------------------------------------------------------------------------

    @PostMapping("/redirectByCode2")
//    @Encrypt
    @Decrypt
    public AjaxResult redirectByCode2(@RequestBody ParseParamObj parseParamObj) {
        return luckyService.redirectByCode2(parseParamObj);
    }
}
